//    Copyright (C) Kherty.  All rights reserved.
using System.Windows;
using System.Windows.Controls;

namespace OpenLS.Spreadsheet.UI
{
    class DragDropElement
    {


        public static object GetObject(DependencyObject obj)
        {
            return obj.GetValue(ObjectProperty);
        }

        public static void SetObject(DependencyObject obj, object value)
        {
            obj.SetValue(ObjectProperty, value);
        }

        // Using a DependencyProperty as the backing store for Object.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ObjectProperty =
            DependencyProperty.RegisterAttached("Object", typeof(object), typeof(DragDropElement), new UIPropertyMetadata(null));



        public static ListBoxItem GetTarget(DependencyObject obj)
        {
            return (ListBoxItem)obj.GetValue(TargetProperty);
        }

        public static void SetTarget(DependencyObject obj, ListBoxItem value)
        {
            obj.SetValue(TargetProperty, value);
        }

        // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TargetProperty =
            DependencyProperty.RegisterAttached("Target", typeof(ListBoxItem), typeof(DragDropElement), new UIPropertyMetadata(null));


    }

}
